package com.guigu.lishuwenservice.controller;


import com.guigu.lishuwenservice.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author lishuwen
 * @since 2022-02-15
 */
@RestController
@RequestMapping("/lishuwenservice/emp")
public class EmpController {

    @Autowired
    private EmpService empService;

    @GetMapping
    public List list() {
        return empService.list(null);
    }
}

